package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 省市区编码对象 dict_city
 * 
 * @author ruoyi
 * @date 2025-01-12
 */
public class DictCity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 城市编码 */
    @Excel(name = "城市编码")
    private Long code;

    /** 父级代码 */
    @Excel(name = "父级代码")
    private Long parentCode;

    /** 城市名称 */
    @Excel(name = "城市名称")
    private String name;

    /** 组合code */
    @Excel(name = "组合code")
    private String mergeCode;

    /** 组合名 */
    @Excel(name = "组合名")
    private String mergeName;

    /** 城市简称 */
    @Excel(name = "城市简称")
    private String shortName;

    /** 组合名简称 */
    @Excel(name = "组合名简称")
    private String mergeShortName;

    /** 城市等级（1省 2市3县） */
    @Excel(name = "城市等级", readConverterExp = "1=省,2=市3县")
    private Long level;

    /** 城市区号 */
    @Excel(name = "城市区号")
    private String cityCode;

    /** 城市邮政编码 */
    @Excel(name = "城市邮政编码")
    private String zipCode;

    /** 城市拼音 */
    @Excel(name = "城市拼音")
    private String spell;

    /** 城市拼音简称 */
    @Excel(name = "城市拼音简称")
    private String shortSpell;

    /** 城市拼音首字母 */
    @Excel(name = "城市拼音首字母")
    private String firstChar;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal lng;

    /** 纬度 */
    @Excel(name = "纬度")
    private BigDecimal lat;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setCode(Long code) 
    {
        this.code = code;
    }

    public Long getCode() 
    {
        return code;
    }

    public void setParentCode(Long parentCode) 
    {
        this.parentCode = parentCode;
    }

    public Long getParentCode() 
    {
        return parentCode;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setMergeCode(String mergeCode) 
    {
        this.mergeCode = mergeCode;
    }

    public String getMergeCode() 
    {
        return mergeCode;
    }

    public void setMergeName(String mergeName) 
    {
        this.mergeName = mergeName;
    }

    public String getMergeName() 
    {
        return mergeName;
    }

    public void setShortName(String shortName) 
    {
        this.shortName = shortName;
    }

    public String getShortName() 
    {
        return shortName;
    }

    public void setMergeShortName(String mergeShortName) 
    {
        this.mergeShortName = mergeShortName;
    }

    public String getMergeShortName() 
    {
        return mergeShortName;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }

    public void setZipCode(String zipCode) 
    {
        this.zipCode = zipCode;
    }

    public String getZipCode() 
    {
        return zipCode;
    }

    public void setSpell(String spell) 
    {
        this.spell = spell;
    }

    public String getSpell() 
    {
        return spell;
    }

    public void setShortSpell(String shortSpell) 
    {
        this.shortSpell = shortSpell;
    }

    public String getShortSpell() 
    {
        return shortSpell;
    }

    public void setFirstChar(String firstChar) 
    {
        this.firstChar = firstChar;
    }

    public String getFirstChar() 
    {
        return firstChar;
    }

    public void setLng(BigDecimal lng) 
    {
        this.lng = lng;
    }

    public BigDecimal getLng() 
    {
        return lng;
    }

    public void setLat(BigDecimal lat) 
    {
        this.lat = lat;
    }

    public BigDecimal getLat() 
    {
        return lat;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("parentCode", getParentCode())
            .append("name", getName())
            .append("mergeCode", getMergeCode())
            .append("mergeName", getMergeName())
            .append("shortName", getShortName())
            .append("mergeShortName", getMergeShortName())
            .append("level", getLevel())
            .append("cityCode", getCityCode())
            .append("zipCode", getZipCode())
            .append("spell", getSpell())
            .append("shortSpell", getShortSpell())
            .append("firstChar", getFirstChar())
            .append("lng", getLng())
            .append("lat", getLat())
            .toString();
    }
}
